package se.zens.demo.wsapp.configuration;

/**
 * Configuration for a webservice
 */
public class WSConfiguration
{
	public enum WebserviceProtocol
	{
		SOAP,
		REST
	}
	private String publishURL;

	private WebserviceProtocol protocol;
	/**
	 * Interface class name under se.zens.demo.wsapp.interfaces
	 */
	private String interfaceClass;
	/**
	 * Interface class name under se.zens.demo.wsapp.impl
	 */
	private String implementationClass;
	
	
	public WSConfiguration(String url,WebserviceProtocol protocol,String interfaceClass,String implClass)
	{
		this.publishURL = url;
		this.protocol  = protocol;
		this.interfaceClass = interfaceClass;
		this.implementationClass = implClass;
	}
	
	public String getPublishURL()
	{
		return publishURL;
	}

	public WebserviceProtocol getProtocol()
	{
		return protocol;
	}

	public String getInterfaceClass()
	{
		return interfaceClass;
	}


	public String getImplementationClass()
	{
		return implementationClass;
	}

	@Override
	public String toString()
	{
		return "WSConfiguration [publishURL=" + publishURL + ", protocol="
				+ protocol + ", interfaceClass=" + interfaceClass
				+ ", implementationClass=" + implementationClass + "]";
	}
	
	
}
